#include <stdio.h>
#include <math.h>

int main()
{
    int N;
    double i;
    double sum = 0;
    scanf("%d",&N);
    for(i=1;i<=N;i++){
        sum = sum + sqrt(i);
    }
    printf("sum = %.2f\n",sum);

    return 0;
}